.g-wrap {
    height: 100%;
    /* min-height: 600px; */
    /* padding-top: 100px; */
    transition: padding linear .3s;
    -webkit-transition: padding linear .3s;
}

.g-wrap-inner {
    position: relative;
    /* max-width: 1000px; */
    width: 100%;
    min-width: 800px;
    height: 100%;
    margin: 0 auto;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
}

.panel {
    position: relative;
    width: 280px;
    height: 100%;
    float: left;
    box-sizing: border-box;
    padding-top: 14px;
    background-color: #fff;
    border-right: 1px solid rgba(245, 245, 245, 1);
}

.panel .m-sch {
    position: relative;
    width: 251px;
    margin: 0 auto 12px;
}

.panel .m-sch i.sch-btn {
    position: absolute;
    top: 12px;
    left: 10px;
    cursor: pointer;
}

.panel .m-sch .sch-ipt {
    width: 221px;
    height: 34px;
    line-height: 34px;
    outline: none;
    border: 1px solid rgba(245, 245, 245, 1);
    border-radius: 17px;
    -moz-border-radius: 17px;
    -webkit-border-radius: 17px;
    padding-left: 30px;
}

.panel .m-sch .sch-res {
    position: absolute;
    top: 40px;
    left: -2px;
    z-index: 999999;
    /* box-sizing: border-box; */
    width: 258px;
    max-height: 420px;
    background-color: #F5F5F5;
    overflow: auto;
    display: none;
}

.panel .m-sch .sch-res.no-res {
    display: none;
}

.panel .m-sch .sch-res.no-res .contact-title {
    padding: 10px 9px;
    font-weight: 400;
    color: #323232;
}

.m-sch .sch-res .sch-res-item {
    overflow: hidden;
    padding: 10px 9px;
    cursor: pointer;
    border-bottom: 1px solid #fff;
}

.m-sch .sch-res .sch-res-item.hover {
    background-color: rgba(199, 199, 199, .3);
}

.sch-res .sch-res-item .res-avatar {
    float: left;
    margin-right: 10px;
}

.sch-res .sch-res-item .res-avatar img {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 2px;
}

.sch-res .sch-res-item .res-info {
    overflow: hidden;
    line-height: 30px;
}

.sch-res .sch-res-item .res-info .nickname {
    font-weight: 400;
    color: #323232;
    font-size: 14px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: normal;
}

.panel .m-tab {
    text-align: center;
    overflow: hidden;
}

.panel .m-tab a {
    box-sizing: border-box;
    display: block;
    float: left;
    height: 40px;
    line-height: 40px;
    width: 50%;
}

.panel .m-tab a.active {
    border-bottom: 1px solid rgba(60, 185, 151, 1);
}

.panel .m-contact-list {
    position: absolute;
    top: 104px;
    right: 0;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    padding-bottom: 10px;
    overflow: auto;
}

.u-item {
    position: absolute;
    box-sizing: border-box;
    width: 100%;
    height: 70px;
    padding: 13px;
    overflow: hidden;
    color: #323232;
    cursor: pointer;
    border-bottom: 1px solid rgba(245, 245, 245, 1);
}

.u-item .avatar {
    position: relative;
    float: left;
    width: 54px;
    height: 44px;
}

.u-item .avatar img {
    width: 44px;
    height: 100%;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

.u-item .avatar .unread {
    position: absolute;
    top: -10px;
    right: 0;
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 12px;
    text-align: center;
    color: #fff;
    background-color: #FF3B30;
    border-radius: 50%;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
}

.u-item .info {
    float: left;
    width: calc(100% - 55px);
    height: 56px;
    font-size: 14px;
    position: relative;
    top: -14px;
    padding-top: 13px;
}

.u-item .info p:first-child {
    position: relative;
    padding-top: 2px;
}

.u-item .info p:first-child .nickname {
    display: block;
    width: 80%;
    /* font-weight: 600; */
}

.u-item .info p:first-child .time {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 12px;
    color: #969696;
}

.u-item .info p:last-child {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding-right: 12px;
    font-size: 12px;
    line-height: 24px;
    color: #969696;
}

.u-item .info p:last-child .circle {
    position: absolute;
    top: 8px;
    right: 0;
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    background-color: rgba(60, 185, 151, 1);
}

.w-group .member-item .info-base {
    height: 45px;
}

.m-contact-list .u-item.active,
.w-group .member-item.active {
    background-color: rgba(199, 199, 199, 1) !important;
    /* color: #fff; */
}


.m-contact-list .u-item.hover,
.w-group .member-item.hover {
    background-color: rgba(199, 199, 199, .3);
}

/* .m-contact-list .u-item.active .info .time{
    color: #fff;
}

.m-contact-list .u-item.active .info p:last-child{
    color: #fff;
} */

.u-item .info p:last-child .circle.hide {
    display: none;
}

.m-chat-body {
    bottom: 220px;
}

/* 中间聊天内容框 */
.m-iframe {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 280px;
    box-sizing: border-box;
    width: calc(100% - 560px);
    height: 100%;
    display: none;
}

/* 输入框 */
.m-chat-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 218px;
    /* border-top: 1px solid rgba(0, 0, 0, .3); */
    background-color: #fff;
}

.m-chat-footer i.record {
    position: absolute;
    top: 5px;
    right: 20px;
    z-index: 1000;
    display: inline-block;
    width: 16px;
    height: 16px;
    color: #969696;
    cursor: pointer;
}

.m-chat-footer .ipt-area {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 48px;
    left: 0;
    overflow: auto;
}

.m-chat-footer .send-area {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    font-size: 12px;
}

.send-area .send-box {
    position: absolute;
    right: 20px;
    bottom: 8px;
    width: 82px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    color: #fff;
    background-color: rgba(60, 185, 151, 1);
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
}

.send-box .send-btn {
    float: left;
    box-sizing: border-box;
    width: 60%;
}

.send-box .line-split {
    position: absolute;
    top: 6px;
    left: 60%;
    width: 1px;
    height: 20px;
    border-right: 1px solid rgba(32, 158, 124, 1);
}

.send-box .choose-btn {
    float: right;
    width: 40%;
}

.send-box .choose-model {
    position: fixed;
    right: 300px;
    bottom: 50px;
    width: 167px;
    /* height: 59px; */
    padding-left: 5px;
    background-color: #FAFAFA;
    text-align: left;
    font-size: 12px;
    color: #323232;
    display: none;
}

.send-box .choose-model p {
    margin: 0;
    line-height: 30px;
}

.choose-model p i {
    opacity: 0;
}

.choose-model p.active i {
    opacity: 1;
}

/*  粘贴发送图片弹出框  */
.m-confirm-img {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 99999;
    transform: translate(-50%, -50%);
    width: 418px;
    height: 534px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
    display: none;
}

.m-confirm-img-header {
    width: 100%;
    height: 32px;
    background-color: rgba(250, 250, 250, 1);
}

.m-confirm-main {
    text-align: center;
}

.m-confirm-main .title {
    margin-top: 24px;
    font-size: 16px;
    color: #323232;
}

.m-confirm-main .img-area {
    margin: 27px auto 0;
    width: 354px;
    height: 332px;
    background-color: rgba(213, 213, 213, 1);
}

.m-confirm-main .img-area img {
    width: 100%;
    height: 100%;
}

.m-confirm-main .btn-box {
    width: 334px;
    margin: 30px auto 0;
    overflow: hidden;
}

.m-confirm-main .btn-box div {
    float: left;
    width: 156px;
    height: 32px;
    line-height: 32px;
    background-color: rgba(213, 213, 213, 1);
    color: #fff;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    cursor: pointer;
}

.m-confirm-main .btn-box div.send {
    margin-left: 22px;
    background-color: rgba(60, 185, 151, 1);
}

/* 右侧快捷回复 */
.m-quick {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    display: none;
}


.m-quick .m-quick-header {
    /* position: relative; */
    height: 64px;
    line-height: 64px;
    background-color: rgba(250, 250, 250, 1);
}

.m-quick .m-quick-body {
    position: absolute;
    top: 64px;
    right: 0;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    border-left: 1px solid rgba(245, 245, 245, 1);
    display: none;
}

.m-quick-body.user-detail {
    box-sizing: border-box;
    padding: 0 10px;
    font-size: 12px;
    color: #969696;
    display: none;
}

.user-detail .base-info,
.user-detail .sub-total,
.user-detail .order-detail {
    padding: 10px 0;
    border-bottom: 1px solid rgba(245, 245, 245, 1);
}

.user-detail .sub-total,
.user-detail .order-detail {
    display: none;
}

.base-info p,
.sub-total p,
.order-detail p {
    line-height: 30px;
}

.base-info .account-info {
    overflow: hidden;
}

.base-info .from {
    overflow: hidden;
}

.base-info .from p {
    width: calc(100% - 70px);
    float: left;
}

.base-info .from a {
    display: block;
    width: 70px;
    line-height: 30px;
    text-align: center;
    float: left;
}

.account-info .accout-type {
    width: calc(100% - 70px);
    float: left;
}

.account-info .avatar-box {
    width: 60px;
    height: 60px;
    float: right;
}

.account-info .avatar-box img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

.m-quick .header-btns {
    font-size: 16px;
    overflow: hidden;
}

.m-quick .header-btns a {
    display: block;
    width: 50%;
    float: left;
    text-align: center;
}

.m-quick .header-btns a.active {
    color: rgba(32, 158, 124, 1);
}

.m-quick .m-quick-body .add-new {
    display: block;
    padding: 10px 0 15px;
    text-align: center;
    color: rgba(32, 158, 124, 1);
}

.m-quick-body .quick-body-search {
    width: 90%;
    margin: 0 auto;
    height: 30px;
    line-height: 30px;
    border: 1px solid rgba(245, 245, 245, 1);
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    overflow: hidden;
}

.quick-body-search input {
    float: left;
    box-sizing: border-box;
    width: 80%;
    height: 100%;
    padding-left: 10px;
    border: none;
    outline: none;
}

.quick-body-search .search-btn {
    float: left;
    display: block;
    width: 20%;
    /* padding: 5px 0; */
    text-align: center;
    background: #eee;
}

.m-quick-body .quick-body-choose {
    padding: 15px 0 10px;
    border-bottom: 2px solid rgba(245, 245, 245, 1);
    overflow: hidden;
}

.quick-body-choose a {
    display: block;
    width: 50%;
    float: left;
    text-align: center;
}

.quick-body-choose a.active {
    color: rgba(32, 158, 124, 1);
}

.m-quick-body .quick-body-area {
    position: absolute;
    top: 120px;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 5px 0;
    overflow: auto;
}

.quick-body-area.public-quick {
    display: none;
}

.quick-body-area .quick-item {
    width: 90%;
    margin: 10px auto;
    padding: 5px;
    font-size: 12px;
    color: #969696;
    /* color: red; */

    box-sizing: border-box;
    border-bottom: 1px dashed #F5F5F5;
}
.quick-body-area .quick-item:hover a{
    visibility: visible;

}
.quick-body-area .quick-item a{
    width: 20px;
    height: 15px;
    color: black;
    margin-left:20px;
    padding: 1px;
    cursor: pointer;
    visibility:hidden;
}
.quick-body-area .quick-item a:first-child{

    background-color: #3CB997;
}
.quick-body-area .quick-item a:last-child{

    background-color: red;
}
.quick-body-area .quick-item.active {
    box-sizing: border-box;
    background: #F5F5F5;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    cursor: pointer;
    position: relative;
}

/* 右键菜单 */
.m-quick  #menu {
    position: absolute;
    /* top: 0px; */
    right: 0px;
    border: 1px solid #F5F5F5;
    background-color: white;
    z-index:9999;
    /* padding: 10px; */
    /* display: none; */
  }
  .m-quick  #menu ul,li {
    margin: 0;
    padding: 5px 10px ;
    list-style-type: none;
    line-height: 25px;
    cursor: pointer;
  }
  .m-quick  #menu ul,li:hover{
      /* color: red; */
  }




/* 增加快捷回复弹窗 */
.add-new-quick-box {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999999;
    background-color: rgba(0, 0, 0, .3);
    display: none;
}

.add-new-quick-box .add-new-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 418px;
    /* height: 300px; */
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
}

.add-new-inner .add-new-header {
    position: relative;
    width: 100%;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background-color: rgba(250, 250, 250, 1);
}

.add-new-inner .add-new-header i {
    position: absolute;
    top: 9px;
    right: 9px;
    cursor: pointer;
}

.add-new-form {
    width: 80%;
    margin: 0 auto;
    padding: 30px 0;
}

.add-new-form .add-new-choose {
    margin-bottom: 20px;
}

.add-new-form .add-new-choose select {
    cursor: pointer;
}

.add-new-form .add-new-ipt {
    margin-bottom: 20px;
    box-sizing: border-box;
    width: 100%;
    height: 20px;
    line-height: 20px;
    font-size: 12px;
    padding-left: 10px;
    outline: none;
}

.add-new-form .add-new-btn {
    display: block;
    width: 100%;
    height: 32px;
    line-height: 32px;
    text-align: center;
    color: #fff;
    background-color: #3CB997;
    border-radius: 5px;
}

.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    display: none;
}

.loading img {
    width: 40px;
    height: 40px;
}
.skin {
    width : 100px;
    border : 1px solid gray;
    padding : 2px;
    visibility : hidden;
    position : absolute;
    }